package com.medsoft.drpcp.meta;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class DrpcpMetaConstant {
	public static final String NODE_NAME_LOCALSERVICE = "drpcp.localService";
	public static final int DEFAULT_TIMEOUT = 3;
	public static final long HEARTBEAT_INTERVAL = 5000;
	public static final String HEARTBEAT_MSG = "drpcpqq";
	public static final String HEARTBEAT_THREAD_NAME = "drpcp-heartbeat-thread";
	public static final String CONFIG_SEPARATOR = ";";
	
	public static String HOSTNAME = null;
	
	static {
		InetAddress addr;
		try {
			addr = InetAddress.getLocalHost();
			HOSTNAME = addr.getHostName();
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}
	}
}
